﻿package com.thaiflashdev.utils{
	import flash.ui.Keyboard;
	
	/**
	 * All Key codes
	 * @author korstudioX2
	 * @version 0.1
	 * 
	 * 
	 */
	
	public class KeyCode {
		
		public static const A:int = 65;
		public static const B:int = 66;
		public static const C:int = 67;
		public static const D:int = 68;
		public static const E:int = 69;
		public static const F:int = 70;
		public static const G:int = 71;
		public static const H:int = 72;
		public static const I:int = 73;
		public static const J:int = 74;
		public static const K:int = 75;
		public static const L:int = 76;
		public static const M:int = 77;
		public static const N:int = 78;
		public static const O:int = 79;
		public static const P:int = 80;
		public static const Q:int = 81;
		public static const R:int = 82;
		public static const S:int = 83;
		public static const T:int = 84;
		public static const U:int = 85;
		public static const V:int = 86;
		public static const W:int = 87;
		public static const X:int = 88;
		public static const Y:int = 89;
		public static const Z:int = 90;
		public static const NUM0:int = 48;
		public static const NUM1:int = 49;
		public static const NUM2:int = 50;
		public static const NUM3:int = 51;
		public static const NUM4:int = 52;
		public static const NUM5:int = 53;
		public static const NUM6:int = 54;
		public static const NUM7:int = 55;
		public static const NUM8:int = 56;
		public static const NUM9:int = 57;
		
		public static const NUMPAD_0:int = Keyboard.NUMPAD_0;
		public static const NUMPAD_1:int = Keyboard.NUMPAD_1;
		public static const NUMPAD_2:int = Keyboard.NUMPAD_2;
		public static const NUMPAD_3:int = Keyboard.NUMPAD_3;
		public static const NUMPAD_4:int = Keyboard.NUMPAD_4;
		public static const NUMPAD_5:int = Keyboard.NUMPAD_5;
		public static const NUMPAD_6:int = Keyboard.NUMPAD_6;
		public static const NUMPAD_7:int = Keyboard.NUMPAD_7;
		public static const NUMPAD_8:int = Keyboard.NUMPAD_8;
		public static const NUMPAD_9:int = Keyboard.NUMPAD_9;
		public static const NUMPAD_MULTIPLY:int = Keyboard.NUMPAD_MULTIPLY;
		public static const NUMPAD_ADD:int 		= Keyboard.NUMPAD_ADD;
		public static const NUMPAD_SUBTRACT:int = Keyboard.NUMPAD_SUBTRACT;
		public static const NUMPAD_DECIMAL:int 	= Keyboard.NUMPAD_DECIMAL;
		public static const NUMPAD_DEVIDE:int 	= Keyboard.NUMPAD_DIVIDE;
		
		public static const F1:int = Keyboard.F1;
		public static const F2:int = Keyboard.F2;
		public static const F3:int = Keyboard.F3;
		public static const F4:int = Keyboard.F4;
		public static const F5:int = Keyboard.F5;
		public static const F6:int = Keyboard.F6;
		public static const F7:int = Keyboard.F7;
		public static const F8:int = Keyboard.F8;
		public static const F9:int = Keyboard.F9;
		public static const F10:int = Keyboard.F10;
		public static const F11:int = Keyboard.F11;
		public static const F12:int = Keyboard.F12;
		public static const F13:int = Keyboard.F13;
		public static const F14:int = Keyboard.F14;
		public static const F15:int = Keyboard.F15;
		
		public static const BACKSPACE:int = Keyboard.BACKSPACE;
		public static const TAB:int = Keyboard.TAB;
		public static const ENTER:int = Keyboard.ENTER;
		public static const SHIFT:int = Keyboard.SHIFT;
		public static const CONTROL:int = Keyboard.CONTROL;
		public static const CAPS_LOCK:int = Keyboard.CAPS_LOCK;
		public static const ESCAPE:int = Keyboard.ESCAPE;
		public static const SPACE:int = Keyboard.SPACE;
		public static const PAGE_UP:int = Keyboard.PAGE_UP;
		public static const PAGE_DOWN:int = Keyboard.PAGE_DOWN;
		public static const END:int = Keyboard.END;
		public static const HOME:int = Keyboard.HOME;
		public static const LEFT:int = Keyboard.LEFT;
		public static const RIGHT:int = Keyboard.RIGHT;
		public static const UP:int = Keyboard.UP;
		public static const DOWN:int = Keyboard.DOWN;
		public static const INSERT:int = Keyboard.INSERT;
		public static const DELETE:int = Keyboard.DELETE;
		public static const NUM_LOCK:int = 144;
		public static const SCROLL_LOCK:int = 145;
		public static const PAUSE:int = 19;
		
		/*public static const SEMICOLON:int = 0;
		public static const EQUAL:int = 0;
		public static const MINUS:int = 0;
		public static const BACKSLASH:int = 0;
		public static const TILDE:int = 0;*/
		
		/**
		 * Keycode Utility contains all keycodes in static values
		 * 
		 */
		public function KeyCode() {
			
		}
		
		//public static function ConvertKeyCodeToKeyName(keyCode:int):String {
			//
		//}
		//public static function ConvertKeyNameToKeyCode(keyName:String):int {
			//
		//}
	}
}